package com.xgggh.redpack.ui.redpack.viewbinder;

import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;

import com.xgggh.redpack.R;
import com.xgggh.redpack.base.viewbinder.BaseItemViewBinder;
import com.xgggh.redpack.base.viewbinder.BinderViewHolder;
import com.xgggh.redpack.databinding.ContentCategoryItemBinding;
import com.xgggh.redpack.databinding.ContentOpenRedPackItemBinding;
import com.xgggh.redpack.domain.category.CategoryItem;
import com.xgggh.redpack.domain.redpack.Pack;

import me.drakeet.multitype.ItemViewBinder;

/**
 * @title 红包领取头
 */
public class OpenRedPackViewBinder extends BaseItemViewBinder<Pack> {

    @NonNull
    @Override
    public int getResId() {
        return R.layout.content_open_red_pack_item;
    }


    @Override
    protected void onBindViewHolder(@NonNull BinderViewHolder holder, @NonNull Pack item) {
        ContentOpenRedPackItemBinding binding= DataBindingUtil.getBinding(holder.itemView);
        binding.setPack(item);
    }


}
